/**
 * Historico de alteração
 *
 * Data         Autor   Descrição
 * 24/10/2010   Jerry   Criação do cabeçalho.
 *
 */
package railbee.banco.dto;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/** 
 * This class represents the primary key of the trens table.
 */
public class TrensPk implements Serializable
{
	protected long idSeqTrem;

	/** 
	 * This attribute represents whether the primitive attribute idSeqTrem is null.
	 */
	protected boolean idSeqTremNull;

	/** 
	 * Sets the value of idSeqTrem
	 */
	public void setIdSeqTrem(long idSeqTrem)
	{
		this.idSeqTrem = idSeqTrem;
	}

	/** 
	 * Gets the value of idSeqTrem
	 */
	public long getIdSeqTrem()
	{
		return idSeqTrem;
	}

	/**
	 * Method 'TrensPk'
	 * 
	 */
	public TrensPk()
	{
	}

	/**
	 * Method 'TrensPk'
	 * 
	 * @param idSeqTrem
	 */
	public TrensPk(final long idSeqTrem)
	{
		this.idSeqTrem = idSeqTrem;
	}

	/** 
	 * Sets the value of idSeqTremNull
	 */
	public void setIdSeqTremNull(boolean idSeqTremNull)
	{
		this.idSeqTremNull = idSeqTremNull;
	}

	/** 
	 * Gets the value of idSeqTremNull
	 */
	public boolean isIdSeqTremNull()
	{
		return idSeqTremNull;
	}

	/**
	 * Method 'equals'
	 * 
	 * @param _other
	 * @return boolean
	 */
	public boolean equals(Object _other)
	{
		if (_other == null) {
			return false;
		}
		
		if (_other == this) {
			return true;
		}
		
		if (!(_other instanceof TrensPk)) {
			return false;
		}
		
		final TrensPk _cast = (TrensPk) _other;
		if (idSeqTrem != _cast.idSeqTrem) {
			return false;
		}
		
		if (idSeqTremNull != _cast.idSeqTremNull) {
			return false;
		}
		
		return true;
	}

	/**
	 * Method 'hashCode'
	 * 
	 * @return int
	 */
	public int hashCode()
	{
		int _hashCode = 0;
		_hashCode = 29 * _hashCode + (int) (idSeqTrem ^ (idSeqTrem >>> 32));
		_hashCode = 29 * _hashCode + (idSeqTremNull ? 1 : 0);
		return _hashCode;
	}

	/**
	 * Method 'toString'
	 * 
	 * @return String
	 */
	public String toString()
	{
		StringBuffer ret = new StringBuffer();
		ret.append( "br.com.railbee.banco.dto.TrensPk: " );
		ret.append( "idSeqTrem=" + idSeqTrem );
		return ret.toString();
	}

}
